using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UwinEducation.Application.Common.Interfaces
{
    /// <summary>
    /// 权限服务接口
    /// </summary>
    public interface IPermissionService
    {
        /// <summary>
        /// 检查用户是否拥有指定权限
        /// </summary>
        /// <param name="userId">用户ID</param>
        /// <param name="permissions">权限代码列表</param>
        /// <returns>是否拥有权限</returns>
        Task<bool> UserHasPermissionsAsync(Guid userId, string[] permissions);

        /// <summary>
        /// 获取用户所有权限
        /// </summary>
        /// <param name="userId">用户ID</param>
        /// <returns>权限代码列表</returns>
        Task<IEnumerable<string>> GetUserPermissionsAsync(Guid userId);

        Task<bool> HasPermissionAsync(Guid userId, string permissionCode);
    }
} 